package yesjava;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Test9 {
    public static void main(String[] args) {

        //
        List<Integer> integerList =  new ArrayList<>( List.of(new Integer[]{1,43,4,2,4,5,343,453,42,8}) ) ;
        integerList.add(9999);
        Collections.sort(integerList);
        System.out.println(integerList);
        System.out.println("-------------");
        for (int i = 0; i < 101; i++) {
            Collections.shuffle(integerList);
            System.out.println(integerList);
        }



       /* for (Integer integer : integerList) {
            System.out.println(integer);
        }
*/


    }
}
